﻿using System;
using System.Windows.Forms;

namespace Library.Winform.Draw.Tools {
  public class ToolDrawRectangle : ToolDraw {
    protected static Type ToolDrawRectangleType = typeof(ToolDrawRectangle);
    public ToolDrawRectangle() {
      Cursor = new Cursor(ToolDrawRectangleType, "Rectangle.cur");
    }

    #region Overrides of ToolDraw

    protected override ObjectDraw CreateObjectOnMouseDown(IDrawContainer container, ScrollMouseEventArgs e) {
      return new RectangleDraw(e.X, e.Y, 1, 1);
    }

    protected override ushort PointHandlerOnMouseMove(ScrollMouseEventArgs e) {
      return RectangleDraw.RightBottom;
    }

   

    #endregion
  }
}
